package com.cy.sys.pojo;



import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 用于保存账单信息
 */
@Data
public class Bill implements Serializable {

    private static final long serialVersionUID = -328920509915622311L;
    /** 账单Id*/
    private Integer billId;
    /** 商品Id*/
    private Integer goodsId;  //外键
    /** 商品名称*/
    private String  goodsName;
    /** 商品数量*/
    private Integer quantity;
    /** 账单金额*/
    private Double amount;
    /** 创建时间*/
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createdTime;

}
